Skip to content

Emit events for pack openings#39

Open
losttime wants to merge 13 commits intogregstewart:masterfrom
losttime:master
Open

Emit events for pack openings#39
losttime wants to merge 13 commits intogregstewart:masterfrom
losttime:master

Conversation

@losttime
Copy link

This update configures Hearthstone to start logging the Achievements.log file. With an abstracted log file watcher, this update also watches the Achievements.log file to detect when cards have been gained (signaling a pack has been opened). The update then emits a pack-opened event containing the details of the cards that were obtained.

This was discussed a while back (gregstewart/hearthstone-tracker/issues/273) but was abandoned because it was not possible in the logs at the time. Blizzard seems to have since reactivated the relevant logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant